<?php
/**
 * 后台主界面
 * @Author 聂哥<376927050@qq.com>
 * @Date: 2022-10-11 19:50:59
*/
namespace app\admin\controller\system;

use app\admin\model\system\SystemModule;

class Index extends Base
{
    public function index()
    {
        if( $this->request->has('m') ){
            $module = $this->request->param('m');
            session('current_module_name',$module);
        }
        $moduleList = SystemModule::where('status',1)->order('sort','desc')->select();
        $this->assign('modules',$moduleList);
        return $this->fetch();
    }

    /**
     * 后台的主控制台
     * @auth true
     * @login true
     * @MethodAuthor: XXJ
     * @Date: 2022-10-11 19:57:29
     */
    public function console()
    {
        return $this->fetch();
    }
}

